<?php
$this->breadcrumbs=array(
	TextbooksModule::t('Change Campus') => Yii::app()->createUrl('/textbooks/selectUniversity'),
	TextbooksModule::t($university->name) => Yii::app()->createUrl('/textbooks/department/index', array('university_id'=>$university->id)),
	TextbooksModule::t($department->name) . " ({$department->books})" => Yii::app()->createUrl('/textbooks/book/list',array('department_id'=>$department->id)),
	$course->name . ' - ' . $book->title,
);?>

<div class="well">
	<h2><?php echo CHtml::encode($book->title); ?></h2>
	<div class="h-book-item">
		<img class="thumbnail" src="<?php if ($book->thumb) echo $book->thumb; ?>" />
		<div class="h-float-right">
			<div class="h-book-content">
				<p><b>Course: <?php echo CHtml::encode($course->name); ?></b></p>
				<?php if ($book->author) : ?><p>Author: <?php echo CHtml::encode($book->author); ?></p><?php endif; ?>
				<?php if ($book->phone) : ?><p>Phone Number: <?php echo CHtml::encode($book->phone); ?></p><?php endif; ?>
				<p>Post by <a href="#"><?php echo CHtml::encode($book->email); ?></a></p>
				<p>Date posted: <?php echo date('F d, Y h:i a', $book->created); ?></p>
				<p>ISBN #: <?php echo CHtml::encode($book->isbn); ?></p>
				<p>Description: <?php echo CHtml::encode($book->description); ?></p>
			</div>
			<div class="h-price-wrap">
				<span class="h-tag-head"> </span>
				<p class="h-post-price">$<?php echo $book->price; ?></p>
			</div>
		</div>
	</div>
</div>